package com.egg.mall.entity.category;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品分类属性
 * </p>
 *
 * @author east
 * @since 2022-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "mall_category_attribute")
@ApiModel(value = "Attribute对象", description = "商品分类属性")
public class CategoryAttribute extends BaseEntity {


    @ApiModelProperty(value = "分类ID")
    @TableField(value = "category_id")
    private Long categoryId;

    @ApiModelProperty(value = "类型", notes = "com.egg.mall.enums.AttributeTypeEnum")
    @TableField(value = "type")
    private String type;

    @ApiModelProperty(value = "名称")
    @TableField(value = "name")
    private String name;


}
